package com.woniuxy.exam.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
// 读取配置文件中指定前端的配置
@ConfigurationProperties(prefix = "aliyun.oss")
@Data
public class OssProperties {
    // 务必要提供set方法，与配置文件中aliyun.oss前缀下的key一致
    private String bucket;
    private String endpoint;
    private String accessKey;
    private String secret;
}